package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author 40520
 * @title: Sound
 * @projectName tanhua
 * @description: TODO
 * @date 2022/1/39:50
 * 语音
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sound")
public class Sound implements Serializable {

    private ObjectId id; //主键id
    private Long sid; //自动增长
    private Long created; //创建时间

    private Long userId;
    private String soundUrl;   //语音地址

    private Integer readed = 0;  //0为未读   1为已读
}